﻿/*
* Activity Tracking Log v0.1.1 - http://activitytrackinglog.codeplex.com
* Activity Tracking Log for ASP.Net & ASP.Net MVC
* Copyright (c) 2011 Vadim Burac
* Licensed under the Microsoft Public License (Ms-PL)
* http://activitytrackinglog.codeplex.com/license
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ActivityTrackingLog.Data.DTOs
{
    [DataContract]
    public class ActivityItemDTO
    {
        [DataMember]
        public int Sequence { get; set; }
        [DataMember]
        public Guid ActivityLogId { get; set; }
        [DataMember]
        public string ApplicationKey { get; set; }
        [DataMember]
        public string ActivityType { get; set; }
        [DataMember]
        public string Category { get; set; }
        [DataMember]
        public string ActivityCode { get; set; }
        [DataMember]
        public string Activity { get; set; }
        [DataMember]
        public bool IsPostAction { get; set; }
        [DataMember]
        public string UserKey { get; set; }
        [DataMember]
        public string ClientHost { get; set; }
        [DataMember]
        public string PageUrl { get; set; }
        [DataMember]
        public string QueryString { get; set; }
        [DataMember]
        public Guid? UserAgentId { get; set; }
        [DataMember]
        public DateTime TimeUtc { get; set; }

        [DataMember]
        public string TimeUtcStr
        {
            get
            {
                return TimeUtc.ToString("MM/dd/yyyy HH:MM:ss.fff");
            }
        }
    }
}
